package com.atguigu.flow.comm;

import lombok.Data;

import java.io.Serializable;

@Data
public class CommJSON implements Serializable {

    private String errorMessage;
    private String errorCode;
    private boolean success;
    private Object data;

    public
    CommJSON() {
        success = true;
    }

    public void setSuc() {
        success = true;
    }

    public void setError() {
        success = false;
    }

}
